<template>
    <Button type="text" :style="{width:'46px',}" :icon="iCon" @click="handleMax" ghost></Button>
</template>

<script>
import { windowOperation } from "../../../../utils/window";
export default {
  data(){
    return {
      iCon:'md-square-outline',
      iMax:false,
    }
  },
  methods: {
    handleMax() {
      if(this.iMax){
        windowOperation("unmax");
        this.iCon = 'md-square-outline'
        this.iMax = false
        
      }else{
        windowOperation("max");
        this.iCon = 'ios-browsers-outline'
        this.iMax = true
        
      }
    },
  },
};
</script>

<style>
</style>